added SSCLI 1.0
[windows-sources.git] / shared source / wpf / src / host / inc / definitions.hxx
blobeb7af2aad991c2fc3f73afe4122c834f5d9d81b4
1 //+-----------------------------------------------------------------------
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // Description:
6 // Contains miscellaneous global definitions
7 //
8 // History
9 // 2005/10/06-[....]
10 // Created
11 // 2007/09/20-[....]
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
16 #pragma once
18 #define ERROR_NO_COMMAND_SPECIFIED 1
19 #define ERROR_COULD_NOT_LAUNCH_RESTRICTED 2
20 #define ERROR_NAVIGATE_FAILED 3
21 #define ERROR_INVOKING_BROWSER 4
22 #define ERROR_NO_EVENT 5
23 #define ERROR_ACTIVATION_EXCEPTION 6
24 #define ERROR_HOST_CRASHED 7
25 #define ERROR_NO_HOST 8
26 #define ERROR_NO_HOST_INIT_FAILED 9
27 #define ERROR_ACTIVATION_ABORTED 30 // used in managed code
29 #define FACILITY_NPAPI 0x102 // used by Mozilla plugin
30 #define FACILITY_WPF_HOST 0x103
32 inline HRESULT WPFHostError2HResult(int error)
34 return error == NOERROR ? S_OK : (HRESULT)(error | (FACILITY_WPF_HOST << 16) | 0x80000000);